import { funcAnythingLoop, funcRemoveAndClick, funcRemoveLoop } from "../main";

export const baidu_baijiahao = () => {
  funcRemoveAndClick({
    removeList: [
      'body > div:nth-child(18)',
      '#wise-invoke-interact-bar',
      '#main > div:nth-child(2)',
      '[class^="fusionTopGuid"]',
      'body > div.drag-wrap.drag-bottom',
      'div[class^="container"]',
      'div[class^="moreVideoContainer"]',
      '#commentModule > div.commentEmbed > div.commentEmbed-body > div > div > div.unicmt-text > div > div',
      // '#commentModule > div:nth-child(1) > div:nth-child(2)'
    ],
    clickList: [
      "#content_wrapper > div.foldMaskWrapper > div.foldIconWrapper",
      '#page_wrapper > div > div:nth-child(8) > div:nth-child(2) > div:nth-child(2) > div:nth-child(1)',
      '#page_wrapper > div > div.alertModalContainer-SoN7r > div.alertModalContent-3FR5m > div.interaction-1-iNk > div.cancel-2aAeo',
      '[class^="fullTextBtn"]',
      '#popupLead > div > div.popup-lead-btn > div.popup-lead-cancel'
    ],
  });
  [
    '#bdrainrwDragButton',
    "#headDeflectorContainer",
    '#ttsGuide',
    '#commentModule > div:nth-child(1) > div:nth-child(2)',
    // '#popupLead'
  ].forEach(funcRemoveLoop);
  funcAnythingLoop((dom) => dom.style.height = 'unset')('#commentModule > div.commentEmbed > div.commentEmbed-body > div > div > div.unicmt-text > div');
};

/*
https://mbd.baidu.com/newspage/data/dtlandingwise?sourceFrom=share_ugc&nid=dt_5004356470931822891

*/